package com.complex.getejb.dao;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: AGrankin
 * Date: 22.08.13
 * Time: 16:21
 * To change this template use File | Settings | File Templates.
 */
public class TreeNode implements Serializable{

    private int nodeID;
    private Integer parentID;
    private String nodeName;
    private List<Attribute> nodeAttributes = new ArrayList<Attribute>();

    public TreeNode() {}


    public int getNodeID() {
        return nodeID;
    }

    public void setNodeID(int nodeID) {
        this.nodeID = nodeID;
    }

    public int getParentID() {
        return parentID;
    }

    public void setParentID(int parentID) {
        this.parentID = parentID;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public void addAttribute(int id, String key, String value) {
        nodeAttributes.add(new Attribute(id, key, value));
    }

    public List<Attribute> getNodeAttributes() {
        return nodeAttributes;
    }

}
